<cfprocessingdirective suppresswhitespace="yes">
<cfinclude template="../../config/config.cfm">
<cfinclude template="../../config/settings.cfm">
<cfif NOT isdefined('application.admin_qcs') OR isdefined('url.init')>
<cfinvoke component="cfcs.common.settings" method="getcomponents" cpath="#request.adminpath#" returnvariable="application.admin_qcs">
</cfif>
<cfset qcs = application.admin_qcs>
<cfif qcs.recordcount GT 1>
	<cfif NOT fileexists('#request.basepath#includes/customconfigs.cfm') OR isdefined('url.init')>
		<cfset includesfile = "">
        <cffile action="write" file="#request.basepath#includes/customconfigs.cfm" output="#includesfile#">        
        <cfloop query="qcs">
            <cfif directoryexists('#request.basepath#components/#qcs.name#/config')>
                <cfdirectory action="list" directory="#request.basepath#components/#qcs.name#/config" name="qconfigs" filter="*.cfm">
				<cfloop query="qconfigs">
                     <cfset this_line = '<cfinclude template="#request.absolutepath#components/#qcs.name#/config/#qconfigs.name#">'>
					 <cffile action="append" file="#request.basepath#includes/customconfigs.cfm" output="#this_line#" addnewline="yes">                     
                </cfloop>
            </cfif>
         </cfloop>
    </cfif>
</cfif>
<cfinclude template="#request.absolutepath#includes/customconfigs.cfm">
<!---if component is called directly set the value of c--->
<cfif cgi.script_name CONTAINS '/components/' AND listlen(cgi.SCRIPT_NAME, "/") GT 1>
	<cfset pathurl = replace(cgi.SCRIPT_NAME, request.absoluteadminpath, "")>
    <cfset pathurl = "/#pathurl#">
	<cfset c = listgetat(pathurl, 2, "/")>
</cfif>
</cfprocessingdirective>